package com.situ.stmall.service;

import java.util.List;

import com.situ.stmall.entity.Order;

public interface OrderService {

	/**
	 * 添加订单，返回订单主键
	 * @param userId
	 * @param cartIds
	 * @return
	 * @throws Exception 
	 */
	Order add(Integer userId, Integer[] cartIds) throws Exception;

	Order getById(String orderId);

	int update(Order order);

	int pay(String id, String paypwd, Integer id2) throws Exception;

	List getByUserId(Integer id);

	int clean();
}
